package dujiu.luogu.circulation;


import java.util.Scanner;

/**
 * @author dujiu
 * @date 2025/3/1
 * @Description
 */
public class P5721 {

    public static void main(String[] args) {
        // Random random = new Random();
        // int randomInt = random.nextInt(20);

        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int currentNumber = 1;
        for (int i = n;i >= 1;i--){
            for (int j = i; j >= 1 ; j--) {
                System.out.printf("%02d", currentNumber++);
            }
            System.out.println();
        }
        // for (int i = 1;i <= n;i++){
        //     for (int j = 1; j <= i ; j++) {
        //         System.out.printf("%02d ", currentNumber++);
        //     }
        //     System.out.println();
        // }
    }
}
